home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / nethack.lha / nethack-3.1 / include / edog.h < prev    next >
C/C++ Source or Header  |  1993-01-17  |  791b  |  30 lines

  1. /*    SCCS Id: @(#)edog.h    3.1    93/01/16    */
  2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  3. /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5. #ifndef EDOG_H
  6. #define EDOG_H
  7.  
  8. /*    various types of food, the lower, the better liked.    */
  9.  
  10. #define DOGFOOD    0
  11. #define CADAVER    1
  12. #define ACCFOOD    2
  13. #define MANFOOD    3
  14. #define APPORT    4
  15. #define POISON    5
  16. #define UNDEF    6
  17. #define TABU    7
  18.  
  19. struct edog {
  20.     long droptime;            /* moment dog dropped object */
  21.     unsigned dropdist;        /* dist of drpped obj from @ */
  22.     unsigned apport;        /* amount of training */
  23.     long whistletime;        /* last time he whistled */
  24.     long hungrytime;        /* will get hungry at this time */
  25.     coord ogoal;            /* previous goal location */
  26. };
  27. #define EDOG(mon)    ((struct edog *)&(mon)->mextra[0])
  28.  
  29. #endif /* EDOG_H */
  30.